package cn.bdqn.dao;

import cn.bdqn.pojo.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 刘旻昊
 * @Date: Created in 2020/6/22  19:07
 */
@Repository
@Mapper
public interface MenuMapper {
    List<Menu> listAll();

    int del(@Param("id") Integer id);

    int insert(Menu menu);
    //@Param("name")String name,@Param("schoolName")String schoolName,@Param("className") String className,@Param("address")String address

    Menu listAllByid(@Param("id") Integer id);

    Integer upd(Menu menu);
}
